package com.liu.proxy.core.handler;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author LIU
 * @version 1.0
 * @description
 * @date 2024/1/16 11:33
 *  TypeHandler类型处理器 负责java数据类型和jdbc数据类型之间的映射和转换
 */
public interface TypeHandler<T> {

    void setParameter(PreparedStatement statement,int i ,T value) throws SQLException;

    T getResult(ResultSet rs, String columnName) throws SQLException;
}
